﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("BE")]
namespace DAL.SiteNaigation
{
    internal class MenuDAL<T>:IDisposable
    {
        internal List<T> GetMenu(int iUserId)
        {
            string GetMenuGUID = "3A8DF15F-21E7-40D8-BE3C-5E785A394086";
            List<T> result = new List<T>();
            try
            {
                result = new GenericList<T>().GetAGenelicListOf(
                    DAL.Gateway.DataAccessGateway.TraerDataTable(GetMenuGUID,iUserId));
            }
            catch (Exception ex)
            {
                throw new Exception("ConnectionsDAL - Create - ", ex);
            }
            return result;
        }
        #region IDisposable Members

        public void Dispose()
        {
        }

        #endregion
    }
}
